package com.css.fxfzypg.modules.baseData.repository;

import com.alibaba.fastjson.JSONObject;
import com.css.fxfzypg.modules.baseData.entity.CountiesCondition;
import com.css.fxfzypg.modules.baseData.queryParams.CountiesConditionQueryParams;

import java.sql.Timestamp;
import java.util.List;

public interface CountiesConditionRepository {
    int updateCountiesCondition(CountiesCondition countiesCondition);

    int saveCountiesCondition(CountiesCondition countiesCondition);

    JSONObject getAllCountiesConditionParams(CountiesConditionQueryParams queryParams, int curPage, int pageSize);

    CountiesCondition getCountiesConditionById(String id);

    CountiesCondition getCountiesConditionBydivision(String provinceId,String cityId,String prefectureId);

    void deleteCountiesConditionsById(String id, Timestamp timestamp, String userId);

    List<CountiesCondition> getAll();

    CountiesCondition getQxCountiesCodition(String province, String city, String area);

    void delete(CountiesCondition condition);

    Integer countByCounty(String province, String city, String county);
    Integer countByCity(String province, String city);
    Integer countByProvince(String province);

    Integer countByProvinceAndYear(String province, String taskYear);
}
